//package org.assertj.ohos.api.widget;
//
//import ohos.annotation.TargetApi;
//import ohos.graphics.drawable.Drawable;
//import ohos.widget.FrameLayout;
//import org.assertj.ohos.api.view.AbstractViewGroupAssert;
//
//import static ohos.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH;
//import static ohos.os.Build.VERSION_CODES.JELLY_BEAN;
//import static org.assertj.core.api.Assertions.assertThat;
//
//public abstract class AbstractFrameLayoutAssert<S extends AbstractFrameLayoutAssert<S, A>, A extends FrameLayout>
//    extends AbstractViewGroupAssert<S, A> {
//  protected AbstractFrameLayoutAssert(A actual, Class<S> selfType) {
//    super(actual, selfType);
//  }
//
//  public S hasForeground(Drawable drawable) {
//    isNotNull();
//    Drawable actualDrawable = actual.getForeground();
//    assertThat(actualDrawable) //
//        .overridingErrorMessage("Expected foreground drawable <%s> but was <%s>", drawable,
//            actualDrawable) //
//        .isSameAs(drawable);
//    return myself;
//  }
//
//  @TargetApi(JELLY_BEAN)
//  public S hasForegroundGravity(int gravity) {
//    isNotNull();
//    int actualGravity = actual.getForegroundGravity();
//    assertThat(actualGravity) //
//        .overridingErrorMessage("Expected foreground gravity <%s> but was <%s>.", gravity,
//            actualGravity) //
//        .isEqualTo(gravity);
//    return myself;
//  }
//
//  @TargetApi(ICE_CREAM_SANDWICH)
//  public S isMeasuringAllChildren() {
//    isNotNull();
//    assertThat(actual.getMeasureAllChildren()) //
//        .overridingErrorMessage("Expected to be measuring all children but was not.") //
//        .isTrue();
//    return myself;
//  }
//
//  @TargetApi(ICE_CREAM_SANDWICH)
//  public S isNotMeasuringAllChildren() {
//    isNotNull();
//    assertThat(actual.getMeasureAllChildren()) //
//        .overridingErrorMessage("Expected to not be measuring all children but was.") //
//        .isFalse();
//    return myself;
//  }
//
//  @TargetApi(ICE_CREAM_SANDWICH)
//  public S isDelayingChildPressedState() {
//    isNotNull();
//    assertThat(actual.shouldDelayChildPressedState()) //
//        .overridingErrorMessage("Epxected to be delaying child pressed state but was not.") //
//        .isTrue();
//    return myself;
//  }
//
//  @TargetApi(ICE_CREAM_SANDWICH)
//  public S isNotDelayingChildPressedState() {
//    isNotNull();
//    assertThat(actual.shouldDelayChildPressedState()) //
//        .overridingErrorMessage("Expected to not be delaying child pressed state but was.") //
//        .isFalse();
//    return myself;
//  }
//}
